home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / mac / ch15 / 15fig14.wrl < prev    next >
Text File  |  1996-09-23  |  921b  |  46 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Shape {
  6.     appearance Appearance {
  7.         material Material {
  8.             diffuseColor 1.0 0.8 0.0
  9.         }
  10.     }
  11.     geometry Extrusion {
  12.         creaseAngle 1.57
  13.         endCap FALSE
  14.         solid  FALSE
  15.         crossSection [
  16.         # Circle
  17.              1.00  0.00,   0.92 -0.38,
  18.              0.71 -0.71,   0.38 -0.92,
  19.              0.00 -1.00,  -0.38 -0.92,
  20.             -0.71 -0.71,  -0.92 -0.38,
  21.             -1.00 -0.00,  -0.92  0.38,
  22.             -0.71  0.71,  -0.38  0.92,
  23.              0.00  1.00,   0.38  0.92,
  24.              0.71  0.71,   0.92  0.38,
  25.              1.00  0.00
  26.         ]
  27.         spine [
  28.         # Straight-line
  29.             0.0 0.0 0.0,  0.0 0.4 0.0,
  30.             0.0 0.8 0.0,  0.0 1.2 0.0,
  31.             0.0 1.6 0.0,  0.0 2.0 0.0,
  32.             0.0 2.4 0.0,  0.0 2.8 0.0,
  33.             0.0 3.2 0.0,  0.0 3.6 0.0,
  34.             0.0 4.0 0.0
  35.         ]
  36.         scale [
  37.             1.8  1.8,  1.95 1.95,
  38.             2.0  2.0,  1.95 1.95
  39.             1.8  1.8,  1.5  1.5
  40.             1.2  1.2,  1.05 1.05,
  41.             1.0  1.0,  1.05  1.05,
  42.             1.15 1.15,
  43.         ]
  44.     }
  45. }
  46.